package com.jian.utils;

import android.content.Context;
import android.content.res.Resources;
import android.util.DisplayMetrics;
import android.widget.Toast;

public class UIUtils
{

	private UIUtils() {
	}


	public static void Toast_str(Context c, String str)
	{
		Toast.makeText(c, str, Toast.LENGTH_SHORT).show();
	}




	/**
	 * 获取屏幕分辩率
	 * 
	 * @param wm
	 * @return
	 */
	public static DisplayMetrics metrics;

	public static DisplayMetrics getMetrics(Resources res)
	{
		if (null == metrics) {
			metrics = res.getDisplayMetrics();
		}
		return metrics;

	}



}
